package com.wyg.epcommonbase.common.enums;

/**
 * @Author: WangYongGan
 * @Date: 2021/11/8 23:50
 * @Description:
 */
public enum ContentTypeEnum {
    html("html", "text/html"),
    xml("xml", "text/xml"),
    xlsx("xlsx", "application/x-xls"),
    xls("xls", "application/x-xls"),
    txt("txt", "text/plain"),
    json("json", "application/json"),
    pdf("pdf", "application/pdf"),
    ppt("ppt", "application/x-ppt"),
    exe("ext","application/x-msdownload"),
    img("img","application/x-img"),
    jpg("jpg","image/jpeg"),
    png("png","application/x-png"),
    mp3("mp3","audio/mp3"),
    ;
    String suffix;
    String type;

    ContentTypeEnum(String suffix, String type) {
        this.suffix = suffix;
        this.type = type;
    }

    public String getSuffix() {
        return suffix;
    }

    public String getType() {
        return type;
    }
}
